package cn.net.yugu.doraemon.datahub.model;

import lombok.Data;

/**
 * @author wanghongli
 * @date 2024/5/29 15:59
 * @description SendResult
 **/
@Data
public class SendResult {
    private int totalCount;
    private int failedSendCount;
    private String msg;

    private SendResult() {}

    public static SendResult build(int totalCount, int failedSendCount, String msg) {
        SendResult sendResult = new SendResult();
        sendResult.setTotalCount(totalCount);
        sendResult.setFailedSendCount(failedSendCount);
        sendResult.setMsg(msg);
        return sendResult;
    }
}
